package com.yanfan.maintain.mapper;

import com.yanfan.energy.domain.MaintainTasksItems;
import com.yanfan.energy.domain.MaintainTasksItemsExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface MaintainTasksItemsMapper {
    long countByExample(MaintainTasksItemsExample example);

    int deleteByExample(MaintainTasksItemsExample example);

    int deleteByPrimaryKey(Long id);

    int insert(MaintainTasksItems record);

    int insertSelective(MaintainTasksItems record);

    List<MaintainTasksItems> selectByExample(MaintainTasksItemsExample example);

    MaintainTasksItems selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") MaintainTasksItems record, @Param("example") MaintainTasksItemsExample example);

    int updateByExample(@Param("record") MaintainTasksItems record, @Param("example") MaintainTasksItemsExample example);

    int updateByPrimaryKeySelective(MaintainTasksItems record);

    int updateByPrimaryKey(MaintainTasksItems record);

    List<MaintainTasksItems> selectByTaskId(Long taskId);

    int insertBatchItems(@Param("entities") List<MaintainTasksItems> tasksItems);
}
